package com.crm.entity;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name="deliverychallan")
public class DeliveryChallan implements Serializable{

	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(generator="increment")
	@GenericGenerator(name="increment", strategy = "increment")
	@Column(name="id")
	private int id; 
	
	private int quotid;
	
	@Column(name="curr_date")
	private Date currentdate;
	
	@Column(name="so_no")
	private String sonumber;
	
	@Column(name="challan_no")
	private String challannumber;
	
	@ManyToOne
	@JoinColumn(name="BUSINESS_ID")
	private Business businessId;
	
	public Business getBusinessId() {
		return businessId;
	}

	public void setBusinessId(Business businessId) {
		this.businessId = businessId;
	}

	public String getChallannumber() {
		return challannumber;
	}

	public void setChallannumber(String challannumber) {
		this.challannumber = challannumber;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getQuotid() {
		return quotid;
	}

	public void setQuotid(int quotid) {
		this.quotid = quotid;
	}

	public Date getCurrentdate() {
		return currentdate;
	}

	public void setCurrentdate(Date currentdate) {
		this.currentdate = currentdate;
	}

	public String getSonumber() {
		return sonumber;
	}

	public void setSonumber(String sono) {
		this.sonumber = sono;
	}
	
	
	public DeliveryChallan(){
		super();
	}
	public DeliveryChallan(int quotid,String sonumber,Date currentDate,String challannumber,Business businessId){
		this.quotid=quotid;
		this.sonumber=sonumber;
		this.currentdate=currentDate;
		this.challannumber=challannumber;
		this.businessId=businessId;
	}

}
